import { ApiRequest, ApiProperty } from '@quick-toolkit/http';
import { Typed } from '@quick-toolkit/class-transformer';

@ApiRequest({
  url: '/api/auth-service/captchaImage',
  method: 'get',
  description: '生成图片验证码',
})
export class CaptchaImageDto {
  @ApiProperty({
    required: true,
    description: '图片高度(px)',
    in: 'query',
    type: 'integer',
    format: 'int32',
  })
  @Typed(Number, {
    required: true,
  })
  public height: number;

  @ApiProperty({
    required: true,
    description: '图片宽度(px)',
    in: 'query',
    type: 'integer',
    format: 'int32',
  })
  @Typed(Number, {
    required: true,
  })
  public width: number;
}
